--- /dev/null
+#\r
+# requires: unix utilities\r
+# GNU gettext\r
+#\r
+\r
+DCC = dcc32.exe\r
+RC = brcc32.exe\r
+\r
+SRC = delphi.pas gnugettext.pas gnugettextD4.pas gnugettextD5.pas \\r
+ gnugettextDx.pas common.pas utils.pas \\r
+ about.pas filter.pas options.pas main.pas readme.pas select.pas\r
+\r
+FRM = about.dfm filter.dfm options.dfm main.dfm readme.dfm select.dfm \r
+\r
+LANG = \\r
+ locale\de\LC_MESSAGES\delphi.mo \\r
+ locale\de\LC_MESSAGES\default.mo \\r
+ locale\de\LC_MESSAGES\gpsbabel.mo \\r
+ locale\fr\LC_MESSAGES\delphi.mo \\r
+ locale\fr\LC_MESSAGES\default.mo \\r
+ locale\fr\LC_MESSAGES\gpsbabel.mo\r
+\r
+.suffixes: .po\r
+\r
+.po.mo:\r
+ msgfmt -o $@ $<\r
+\r
+.rc.res:\r
+ $(RC) $<\r
+\r
+.dpr.exe:\r
+ $(DCC) $<\r
+\r
+default: GPSBabelGUI.exe\r
+\r
+GPSBabelGUI.exe: GPSBabelGUI.dpr GPSBabelGUI.res $(SRC) $(FRM) $(LANG)\r
+ $(DCC) GPSBabelGUI.dpr\r
+ assemble GPSBabelGUI.exe --dxgettext\r
+\r
+run: GPSBabelGUI.exe\r
+ xcopy /Y ..\..\gpsbabel.exe\r
+ xcopy /Y ..\..\mingw\libexpat.dll\r
+ xcopy /Y ..\..\gpsbabel.html\r
+ GPSBabelGUI.exe\r
+\r
+GPSBabelGUI.res: GPSBabelGUI.dof dof2rc.exe\r
+ dof2rc GPSBabelGUI\r
+ $(RC) GPSBabelGUI.rc\r
+\r
+clean:\r
+ rm -f *.bak *.dcu *.exe *.mo *.dll *.res *.rc\r
+ rm -f *.~* *.??~ \r
+ rm -f readme.html README readme.xml\r
+ rm -f locale\de\LC_MESSAGES\*.mo\r
+ rm -f locale\fr\LC_MESSAGES\*.mo\r
+\r